package com.ruoyi.orderParent.mapper;

import java.util.Date;
import java.util.List;

import com.ruoyi.orderParent.domain.OrderDetail;
import com.ruoyi.orderParent.domain.SysOrderDetail;
import com.ruoyi.orderParent.domain.SysOrderParent;
import com.ruoyi.orderParent.domain.SysOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 批量订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
public interface SysOrderParentMapper 
{
    /**
     * 查询批量订单
     * 
     * @param id 批量订单主键
     * @return 批量订单
     */
    public SysOrderParent selectSysOrderParentById(Long id);

    /**
     * 查询批量订单列表
     * 
     * @param sysOrderParent 批量订单
     * @return 批量订单集合
     */
    public List<SysOrderParent> selectSysOrderParentList(SysOrderParent sysOrderParent);

    /**
     * 新增批量订单
     * 
     * @param sysOrderParent 批量订单
     * @return 结果
     */
    public int insertSysOrderParent(SysOrderParent sysOrderParent);

    /**
     * 修改批量订单
     * 
     * @param sysOrderParent 批量订单
     * @return 结果
     */
    public int updateSysOrderParent(SysOrderParent sysOrderParent);

    /**
     * 删除批量订单
     * 
     * @param id 批量订单主键
     * @return 结果
     */
    public int deleteSysOrderParentById(Long id);

    /**
     * 批量删除批量订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysOrderParentByIds(Long[] ids);

    /**
     * 批量删除${subTable.functionName}
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysOrderByParentIds(Long[] ids);
    
    /**
     * 批量新增${subTable.functionName}
     * 
     * @param sysOrderList ${subTable.functionName}列表
     * @return 结果
     */
    public int batchSysOrder(List<SysOrder> sysOrderList);
    

    /**
     * 通过批量订单主键删除${subTable.functionName}信息
     * 
     * @param id 批量订单ID
     * @return 结果
     */
    public int deleteSysOrderByParentId(Long id);

    List<SysOrderDetail> getSysOrderParentById(Long id);

    List<SysOrderDetail> getSysOrderDetail(@Param("orderDetail") OrderDetail orderDetail, @Param("id") Long id);

    List<SysOrderParent> getSysOrderParentList(@Param("sysOrderParent")SysOrderParent sysOrderParent,@Param("beginCreateTime") Date beginCreateTime,@Param("endCreateTime") Date endCreateTime);

    List<SysOrderParent> selectSysOrderParentByIds(@Param("moreOrderList") List<Long> moreOrderList);
}
